package com.fowo.api.sys.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 为 SysTask 提供类型定义
 */
public enum SysTaskType {
    Sql("sql", "SQL"),
    Inner("inner", "内部方法"),
    Api("api", "API");

    @EnumValue
    @JsonValue
    private final String value;
    private final String label;

    SysTaskType(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }
}
